package org.aurora.module.user.domain.service.impl;

import org.aurora.framework.boot.domain.AbstractDomainService;
import org.aurora.module.user.domain.entity.User;
import org.aurora.module.user.domain.repository.UserRepository;
import org.aurora.module.user.domain.service.UserService;
import org.springframework.stereotype.Service;

/**
 * UserServiceImpl
 * <pre>
 * description: 用户领域服务
 * create date: 2025-03-22 17:55:00
 * </pre>
 *
 * @author cao.yong
 */
@Service
public class UserServiceImpl extends AbstractDomainService<User, UserRepository, Long> implements UserService {
    public UserServiceImpl(UserRepository repository) {
        super(repository);
    }

    @Override
    public User findByUsername(String username) {
        return getRepository().findByUsername(username);
    }

    @Override
    public User findByTelephone(String telephone) {
        return getRepository().findByTelephone(telephone);
    }
}
